package notes.java.sjms23.t10_visitor;

// 具体元素， 圆形
public class ShapeCircle implements Shape{

    // 基本属性，半径
    private double r;

    public ShapeCircle(double r) {
        this.r = r;
    }

    @Override
    public double accept(Visitor visitor) {
        return visitor.ofShap(this);
    }

    public double getR() {
        return r;
    }

    
    public void setR(double r) {
        this.r = r;
    }
    
    
    
}
